hostAddressToName
Type
function
Summary
Returns the domain name corresponding to an IP address.
Syntax
the hostAddressToName of <IPAddress>
hostAddressToName(<IPAddress>)
Description
Use the hostAddressToName function to find the domain name of the computer at a IP address.
The hostAddressToName function does a reverse DNS lookup on the IP address in order to find the domain name. This means that the computer must be connected to the Internet in order to use this function. If a connection to the Internet is not available, the hostAddressToName function returns an error message.
Parameters
Name | Type | Description |
---|---|---|
IPAddress | A numeric IP address. |
Examples
hostAddressToName("127.0.0.1")
answer "Connecting to" && hostAddressToName(newAddress) & "..."
Related
command: accept
control structure: function
function: peerAddress, hostAddress
glossary: domain name, IP address, return, DNS
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop
server
mobile